﻿using System;
using System.Collections.Generic;
using System.Text;
using Fcdbas.Core.WCF.TransFile.Contracts.Enums;

namespace Fcdbas.Core.WCF.TransFile.Client
{
    /// <summary>
    /// 上传事件参数
    /// </summary>
    public class FileLoadEventArgs
    {
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 上传进度
        /// </summary>
        public LoadProgress Progress { get; set; }
        /// <summary>
        /// 服务器返回消息
        /// </summary>
        public ExecuteResult ResultType { get; set; }
        /// <summary>
        /// 当前上传位置
        /// </summary>
        public int Current { get; set; }
        /// <summary>
        /// 文件总大小
        /// </summary>
        public int Size { get; set; }

        public FileLoadEventArgs Clone()
        {
            return this.MemberwiseClone() as FileLoadEventArgs;
        }
    }
}
